﻿using UnityEngine;
using System.Collections;

public class playerOnTopChecker : MonoBehaviour {
	
	public bool playerIsOnTop;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnTriggerStay(Collider myCol)
	{
		if(myCol.tag == "Player" || myCol.tag == "Item")
		{
			playerIsOnTop = true;
		}
	}
	
	void OnTriggerExit(Collider myCol)
	{
		if(myCol.tag == "Player" || myCol.tag == "Item")
		{
			playerIsOnTop = false;
		}
	}
}
